package cn.itcast.service.impl;

import cn.itcast.dao.StudentDao;
import cn.itcast.dao.impl.StudentDaoImpl;
import cn.itcast.service.StudentService;
import cn.itcast.vo.Student;

public class StudentServiceImpl implements StudentService{
	private StudentDao studentDao;
	public StudentServiceImpl(){
		studentDao=new StudentDaoImpl();
	}
	@Override
	public Student getStudentByUsername(String username) {
		Student student=studentDao.getStudentByUsername(username);
		return student;
	}
	@Override
	public void updateStudent(Student student) {
		
		studentDao.updateStudent(student);
	}
	@Override
	public String getTokenid(String tokenId) {
		String token_id=studentDao.getTokenid(tokenId);
		return token_id;
	}

}
